package com.service;

import com.entity.CatUser;
import com.mapper.CatUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CatUserService {

    @Autowired
    CatUserMapper CatUserMapper;

    public int AddUser(CatUser catUser){
        return CatUserMapper.AddUser(catUser);
    }

    public int AddUserMsg(CatUser catUser){
        return CatUserMapper.AddUserMsg(catUser);
    }

    public int ResetPassword(String username){
        return CatUserMapper.ResetPassword(username);
    }

    public int UserDelete(String username){
        return CatUserMapper.UserDelete(username);
    }

    public List<CatUser> UserMsg(){
        return CatUserMapper.UserMsg();
    }

}
